//logs.js
const util = require('../../utils/util.js')
const { $Toast } = require('../../dist/base/index');
var api = require('../../config/api.js');
const app = getApp();


Page({
  data: {
    dmtList:[],
    newList: [],
    current:'dmt',
  },
  onLoad: function () {
    let self = this;
    util.request(api.GetsolicitrRecord, {
    }, 'POST').then(res => {
      if (res.success) {
        self.setData({
          dmtList: res.data.dmtList,
          newList: res.data.newList
        })
      }
    }).catch(err => {

    });
  },

  handleChange({ detail }) {
    this.setData({
      current: detail.key,
    });
  }
})
